<?php
include_once('conn.php');
if(!isset($_POST['submit'])){
    die("非法访问！");
}
$stu_id=$_POST['stu_id'];// 学生id
$stu_name=$_POST['stu_name'];// 学生姓名
$stu_score=$_POST['stu_score'];// 学生分数
$sql = "update `student_info` set `stu_name`='$stu_name',stu_score=$stu_score
                where stu_id=$stu_id";
$ret = mysqli_query($conn,$sql);
if($ret){
    echo "修改成功！<a href='./index.php'>返回首页</a>";
}else{
    echo "修改失败！";
}